//
//  Mobility.h
//  genePool
//
//  Created by Greg Dunn on 10/26/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "SSVector3D.h"

@interface SSMobility : NSObject {

	SSVector3D *forceVector;
	SSVector3D *maxVector;
	float previousRotation;
	float friction;
	float gravity;
	
	float speedMultiplier;
	float rotationMultiplier;
}
@property (assign)SSVector3D *forceVector;
@property (assign)SSVector3D *maxVector;
@property float previousRotation;
@property float friction;
@property float gravity;

@property float speedMultiplier;
@property float rotationMultiplier;

//Methods
-(id)init;
-(id)initWithMaxVector:(SSVector3D*)localMaxVector;
-(id)initWithMaxVector:(SSVector3D*)localMaxVector andFriction:(float)localFriction andGravity:(float)localGravity;
-(void)updateMaxVector:(SSVector3D *)localVector;
-(void)updateForceVector:(SSVector3D*)localForceVector;
-(void)applyFriction;
-(void)applyGravity;
-(void)applyForce;
-(SSVector3D *)applyDeltaTime:(float)localDeltaTime toForceVector:(SSVector3D*)localForceVector;
-(SSVector3D *)applyForceWithVector:(SSVector3D*)localForceVector andDeltaTime:(ccTime)localDeltaTime;	

@end
